package org.tissou.client.DonneesAAfficher;

import org.tissou.client.Services.ProprietaireInfos;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.HTML;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 03/03/2009
 * Time: 21:12:32
 * To change this template use File | Settings | File Templates.
 */
public class Element_Tiers implements IsSerializable,Element{
  ProprietaireInfos tiers;

  public Element_Tiers() {
  }

  public ProprietaireInfos getTiers() {
    return tiers;
  }

  public Element_Tiers(ProprietaireInfos tiers) {

    this.tiers = tiers;
  }

  public Widget ConvertirEnWidget() {
    if (tiers == null){
      return new HTML("");
    }
    else return new HTML(tiers.getNom());
  }

  public Element clone() {
    return new Element_Tiers();
  }

   public void setCaracteristique(ProprietaireInfos caracteristique) {
    tiers = caracteristique;
  }
}
